//
//  BYJView.m
//  BLDMusics
//
//  Created by 白云杰 on 16/3/18.
//  Copyright © 2016年 李晓丹. All rights reserved.
//

#import "BYJView.h"

@implementation BYJView

- (instancetype)initWithFrame:(CGRect)frame {
    self= [super initWithFrame:frame];
    if (self) {
        [self createBYJView];
    }
    return self;
}

- (void)createBYJView {
    
    self.BYJButton = [UIButton buttonWithType:UIButtonTypeCustom];
    _BYJButton.frame = CGRectMake(10, 0, 30, 30);
    //_BYJButton.backgroundColor = [UIColor redColor];
    [self addSubview:_BYJButton];
    
    self.BYJLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 30, 50, 20)];
    //_BYJLabel.backgroundColor = [UIColor cyanColor];
    _BYJLabel.textAlignment = NSTextAlignmentCenter;
    _BYJLabel.textColor = [UIColor whiteColor];
    [self addSubview:_BYJLabel];
    
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
